<template>
  <div id="app">
    <a href="javascript:;" @click="$store.commit('switch_dialog')">点击</a>

    <a href="javascript:;" @click="$store.dispatch('switch_dialog2')">点击2</a>
    <t-dialog></t-dialog>
  </div>
</template>
<script>
  import dialog from '../components/dialog.vue'
  export default {
    components:{
      "t-dialog":dialog
    }
  }
</script>
